
#include<stdio.h>




int convertInteger(int A, int B){
    int C = A ^ B;
    int t =0;
    int num = 0;
    int n=C;
    unsigned int flag = 1;
    while(flag) {
        if(n & flag)
            num++ ;
        flag = flag << 1;
    }
    t=num;
    return t;
}


int main()
{
	
	printf("%d",convertInteger(29,15));
	return 0;
 } 
